|
|
|
|
|
|
|
Assuming that Crystal Reports was installed correctly, you should be able to access the Crystal Reports Designer by selecting Report Designer from Visual Basic's Add-Ins menu. The Crystal Reports Designer, shown in Figure 29.10, is a development environment for report files. Here, you can design new reports, edit existing reports, and even preview what the finished report will look like. |
|
|
|
|
|
|
|
|
|
The executable to run the Crystal Reports Designer is CRW32.EXE. At the time of this writing, the install included with Visual Basic does not create an icon for the Crystal Reports Designer, so you will have to locate this file on your hard drive and manually create a shortcut if you want to open the Crystal Reports Designer from outside VB. (The default location is \Program Files\MS Visual Studio\Common\Tools\Reports.) If you have Crystal Reports version 6.0, a Start menu group and shortcut icon should have been automatically created.  |
|
|
|
|
|
|
|
|
|
|
Figure 29.10
The Crystal Report Designer is a separate application from Visual
Basic. Use it to determine the layout of the fields on your report. |
|
|
|
|
|
|
|
|
In Figure 24.10, notice the two tabs that control your view of the report: Design and Preview. While you are in Design mode, you can draw and arrange fields on the report. This process works just like drawing controls on a form; you place a report field on the page, setting the appropriate field name and other properties. If you switch to the Preview tab, Crystal Reports connects to the data source and populates the report with data. |
|
|
|
|
|
|
|
|
To test this product, create a sample report from the BIBLIO database. First, open the Crystal Reports Designer and choose to create a new report by choosing New from the File menu. The Create New Report dialog box then appears, as shown in Figure 29.11. |
|
|
|
|
|
|
|
|
As you can see, you can choose from several different types of reports. If you select one of the predefined report types, you use the Create Report Expert to create your report. The Create Report Expert organizes the report creation process into a series of steps, much like a wizard. You can also choose to create a custom report from scratch by clicking the Custom command button and making two selections from the bottom section of the dialog box: the report type and data source. |
|
|
|
|
|